I am trying to use the following PowerShell script to retrieve all of my users, but I keep getting a 404 response. Can anyone help me understand what I am missing?
$apiKey = â***********â
$URI0 = âhttps://api.pagerduty.com/usersâ
$URI1 = âhttps://api.pagerduty.com/users?limit=100&offset=0â
$URI2 = âhttps://api.pagerduty.com/users?limit=100&offset=100â
Invoke-RestMethod -Method Get -Uri $URI0 -Header @{ âAuthorizationâ = $apiKey, âapplication/vnd.pagerduty+json;version=2â}